<div id="pages_news_list" class="scroll" style="height:100%;display:none;"><master :title="title">
  <listpage ref="listpage"></listpage>
</master></div>
<script type="text/javascript">
(function (G) {
  G.vue("pages_news_list",{
  "usingComponents": {
    "master": "/components/Master/Master",
    "listpage": "/components/List/Page/Page"
  },
  "enablePullDownRefresh": true
},G.modelList({
    modelName: 'article',
    nickName: '新闻',
    pageUrl:'/pages/article/detail/detail?id={_id}',
    listPage:{
      getUrl:'/api/model/article?type=news&join=user',
      models: { userName: { label:'作者' } }
    },
    modeleditquery: function (modeleditquery){
      modeleditquery.values.type = 'news';
      modeleditquery.values.userId = G.Storage.get('userInfo').id;
    }
  }));
})(Y)
</script>